<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>训练资源共享</title>
    <script src="../WF/Scripts/jquery/jquery.min.js"></script>
    <script src="../WF/Scripts/QueryString.js" type="text/javascript"></script>
    <script src="../WF/Scripts/bootstrap/js/jquery.min.js"></script>
    <script src="../WF/Scripts/config.js" type="text/javascript"></script>
    <script src="../WF/Comm/Gener.js" type="text/javascript"></script>
    <script src="../WF/Scripts/bootstrap/js/bootstrap.min.js"></script>
    <script src="layer/layer.js"></script>
    <script src="js/date.js"></script>
    <link href="css/xlzygx.css" rel="stylesheet" />
    <link href="css/reset.css" rel="stylesheet" />
</head>
<body class="main">
    <div class="top">
        <div class="time">
            <img src="image/mh/time.png" />
            <span class="nowTime"></span>
        </div>
        <div class="title">训练资源共享</div>
        <div class="out">
            <span class="outBox" onclick="logout()">
                <img src="image/mh/out.jpg">
                <span>退出</span>
            </span>
        </div>
    </div>
    <div class="bottom">
        <div class="boxT boxTHover" onclick="ToPM()">
            <span class="static static_xmglxt"></span>
            <span class="system_name">训练基地产地</span>
        </div>
        <div class="boxT" onclick="ToPM()">
            <span class="static static_ghglxt"></span>
            <span class="system_name">院校教学条件</span>
        </div> 
    </div>
     
    <div class="footer">技术支持：珠海高凌信息科技股份有限公司</div>
    <script>
        $(function () {
            var dotype = GetQueryString("DoType");
            if (dotype == "Logout") {

                return;
            }
            //TODO 验证Token
            var token = GetQueryString("token");
        })
        function ToPM() {
            window.location.href = "dev.html";
        }

        function logout() {

            if (confirm("提示确定需要退出？") == false)
                return;

            var handler = new HttpHandler("BP.WF.HttpHandler.WF_Portal");
            var data = handler.DoMethodReturnString("Default_LogOut");
            data = data.replace(/Login.htm/, "Login.html");
            window.location.href = data; // "Login.html?DoType=Logout";

            //  win
            //  var url = getPortalConfigByKey("LogoutPath", "./") + data;
            //window.location.href = url;// "Login.htm?DoType=Logout";
        }

        //时钟
        var timer1 = setInterval(function () {
            var str = getYear() + '&nbsp;' + getWeekDate() + '&nbsp;' + getHours();
            $('.nowTime').html(str);
        }, 1000);
        //   取消定时器
        //$('.out').click(function () {
        //    clearinterval(timer)
        //});
        //$('.outBox').hover(function () {
        //    $(this).css("background-color", "#2d93ca");
        //    $(this).css("height", "3vh");
        //    $(this).css("line-height", "3vh");
        //}, function () {
        //    $(this).css("background-color", "");
        //    $(this).css("height", "0.85vh");
        //    $(this).css("line-height", "0.85vh");
        //});
        $('.boxT').hover(function () {
            $('.boxT').removeClass('boxTHover');
            $(this).addClass("boxTHover");
        });
    </script>
</body>
</html>